﻿using System;
using System.Collections;
using System.Data;

public partial class Admin_Default : System.Web.UI.Page
{
    Data data = new Data();
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnLogin_Click(object sender, EventArgs e)
    {
        if (data.LoginAdmin(txtName.Text, txtPass.Text))
        {
            Session["admin"] = "true";
            Response.Redirect("choseOptions.aspx");
        }
        else
        {
            lblPass.Visible = true;
        }
    }
}
